package com.dsc.ctrl;

import com.dsc.IHelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class HelloController {
    @Reference
    private IHelloService IHelloService;


    @GetMapping("/hello")
    public String getHello(){
        return IHelloService.sayHello("Dubbo SpringCloud aliababa集成功能! 当前时间:"+new Date());
    }


}